#pragma once

#include <QObject>
#include <QWidget>


class QsciScintilla;
class HtmlTidyClass : public QObject
{
	Q_OBJECT

public:
	explicit  HtmlTidyClass(QWidget* mainWidget, const QString& pluginPath, QsciScintilla* pEdit,
		QObject* parent = nullptr);
	~HtmlTidyClass();

private slots:
	void on_htmltidy();
	void on_PicConfig();
	void on_HandConfig();

public:
	void setScintilla(const std::function<QsciScintilla* ()>& cb);

private:
	std::function<QsciScintilla* ()> scintillaCallback_;
	QWidget* mainWidgetD;
};
